<div> 
<form method="post" action="{:U($module_name.'/article_updateoradd')}" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
<table class="table" width="100%" hidden="100%" layoutH="110">
<tr>
	<td width="30%">文章标题:</td><td><input type="text" id="title" name="title" value="{$article['title']}" errormsg="广告标题至少2个字符,最多18个字符！"/></td>
</tr>
<tr>
	<td>文章简介:</td><td><input type="text" name="info" id="info" value="{$article['info']}"/></td>
</tr>
<tr>
	<td>文章类型:</td>
	<td>
	<select id="type" name="type">
		<option value="1" {if $article['type'] == 1} selected="selected" {/if}>普通文章</option>
		<option value="2" {if $article['type'] == 2} selected="selected" {/if}>公告</option>
		<option value="3" {if $article['type'] == 3} selected="selected" {/if}>活动</option>
		<option value="4" {if $article['type'] == 4} selected="selected" {/if}>帮助</option>
		<option value="5" {if $article['type'] == 5} selected="selected" {/if}>系统</option>
	</select>
	</td>
</tr>
<tr>
	<td>链接地址:</td>
	<td>
	<input type="text" name="url" id="url" value="{$article['url']}" placeholder="http://" />
	</td>
</tr>
</table>
	<div class="form-actions">
    <input  type="hidden" name="id" id="id" value="{$id}">
    <input  type="hidden" name="cid" id="cid" value="{$article['siteid']}">
    <input type="hidden" id="user_id" value="{$user_id}" name="user_id">
    <input value="1" type="hidden" name="submit" type="hidden">
		<input type="submit" class="btn btn-primary" value="提交" style="width:50px;float:none;"/>&nbsp;&nbsp;&nbsp;
		<input type="reset" class="btn" value="重置" style="width:50px;float:none;"/>
	</div>
	</form>
</div>
